<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <?php include 'inc/head.php'; ?>
</head>

<body>
  <?php include 'inc/header.php'; ?>
  <div class="container">

    <?php
    echo form_create(
      ['action' => M('admin', 'admin', 'edit_action', $this->id)],
      [
        ['type' => 'password', 'label' => '登录密码', 'key' => 'u_psw', 'placeholder' => '8-16位字符，包含大写字母，小写字母，数字及特殊符号中的3种'],
        ['type' => 'password', 'label' => '效验密码', 'key' => 'u_psw_confirm'],
        ['type' => 'text', 'label' => '备注', 'key' => 'u_tname'],
        ['type' => 'select', 'label' => '权限角色', 'key' => 'u_rid', 'value' => $list_role, 'disabled' => (1 == $this->id ? 'disabled' : '')],
        ['type' => 'select', 'label' => '状态', 'key' => 'u_enable', 'value' => [
          ['label' => '生效', 'value' => '1'],
          ['label' => '失效', 'value' => '0']
        ], 'disabled' => (1 == $this->id ? 'disabled' : '')],
        ['type' => 'submit', 'label' => '提交', 'key' => 'save']
      ],
      ['管理员编辑'],
      $row
    );
    ?>

  </div>
  <?php include 'inc/footer.php'; ?>
</body>

</html>